package com.atguigu.spring.Dao;

public interface BookDao {
    void buyBook(Integer userId, Integer bookId);

    /**
     *获取该书的价格
     * @param bookId
     * @return
     */
    Integer getPriceByBookId(Integer bookId);
    /**
     *更新库存
     * @param bookId
     */
    void updateStock(Integer bookId);
    /**
     *更新顾客的账户余额
     * @param userId
     * @param price
     */
    void updateBalance(Integer userId, Integer price);
}
